package com.imjohn.mapper;

import com.imjohn.entity.Comment_mid;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
public interface CommentmidMapper {
    /**
     * 校验是否点过赞
     * @return
     */
    List<HashMap> isCommentGoodFlag( String userId, String commentId);
    /**
     * 插入点赞表
     * */
    int setCommentGoodFlag( String userId, String commentId, String commentGoodFlag);
    /**
     * 点赞取消
     * */
    int cancelCommentGoodFlag( Comment_mid comment_mid);
}
